<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{$data['title']} - {$web_name}</title>
    <meta name="keywords" content="{$data['seo_keywords']}" />
    <meta name="description" content="{$data['summary']}" />
    <link rel="stylesheet" type="text/css" href="__CDN__/assets/static/css/style.css?a=sdf">
    <link rel="stylesheet" type="text/css" href="__CDN__/assets/static/css/details.css">
    <link rel="canonical" href="{$url}">
</head>
<body>
{include file="common/header" /}

<main>
    <nav class="breadcrumb">
        <div class="breadcrumb-content">
            <!--<a href="index.html">Home</a>-->
            <!--<span class="separator">/</span>-->
            <!--<span>Articles</span>-->
            {$nav}
        </div>
    </nav>
    <div class="content-container">

        <!-- Left Column - Article Content -->
        <div class="left-column">
            <article class="article-detail">
                <h1 class="article-title">{$data['title']}</h1>
                <div class="article-meta">
                    <span>By {$data['author']}</span>
                    <span>•</span>
                    <span>Last updated: {$data['updatetime']}</span>
                </div>

                <img src="{$data['big_image']}" alt="{$data['img_alt']}">

                <div class="article-content">
                    {$dataContent['content']}
                </div>

                <div class="article-navigation">
                    <a href="{$lastData['url']}" class="nav-button prev-button" title="{$lastData['title']}">
                        ← Previous Article<br>
                        <!--<span>{$lastData['title']}</span>-->
                    </a>
                    <a href="{$nextData['url']}" class="nav-button next-button" title="{$nextData['title']}">
                        Next Article →<br>
                        <!--<span>Puppy Training Guide</span>-->
                    </a>
                </div>
            </article>

            <h2 style="margin-bottom: 20px;border-bottom: 2px #FF7F50 solid; padding-bottom: 10px;">Top 10 {$seoTitle} Articles</h2>
            <div class="article-list">
                <!-- Repeat this card for each article -->
                <?php
                if(!empty($top10Rs)){
                    foreach($top10Rs as $k=>$v){
                ?>
                <div class="article-card">
                    <a href="{$v['url']}" title="{$v['title']}">
                        <h3>{$v['title']}</h3>
                    </a>
                </div>
                <?php
                    }
                }
                ?>
                <!-- Add more article cards as needed -->
            </div>

        </div>

        <!-- Right Column - Recommended Content -->
        <div class="right-column">
            <h3 style="margin-bottom: 20px;font-size:25px;border-bottom: 2px #FF7F50 solid; padding-bottom: 10px;">Recommended Reads</h3>
            <?php
                if(!empty($tjRs)){
                    foreach($tjRs as $k=>$v){
                    ?>
                    <div class="recommended-card">
                        <a href="{$v['url']}" title="{$v['title']}">
                            <img src="{$v['image']}" alt="{$v['title']}">
                            <h4>{$v['category_name']}</h4>
                            <p>{$v['title']}</p>
                        </a>

                    </div>
                    <?php
                    }
                }
            ?>
        </div>
    </div>
</main>

{include file="common/footer" /}

</body>
</html>